package c.j.a.d.b.j;

import android.app.Notification;
import android.os.Handler;
import android.os.RemoteException;
import c.j.a.d.b.d.a0;
import c.j.a.d.b.d.b0;
import c.j.a.d.b.d.d0;
import c.j.a.d.b.d.f0;
import c.j.a.d.b.d.h0;
import c.j.a.d.b.d.i;
import c.j.a.d.b.d.j0;
import c.j.a.d.b.d.l0;
import c.j.a.d.b.d.m;
import c.j.a.d.b.d.m0;
import c.j.a.d.b.d.n;
import c.j.a.d.b.d.q;
import c.j.a.d.b.d.t;
import c.j.a.d.b.d.u;
import c.j.a.d.b.d.v;
import c.j.a.d.b.d.w;
import c.j.a.d.b.d.x;
import c.j.a.d.b.d.z;
import c.j.a.d.b.e.l;
import c.j.a.d.b.e.m.a;
import c.j.a.d.b.e.p;
import c.j.a.d.b.e.s;
import c.j.a.d.b.h.c;
import c.j.a.d.b.n.b;
import c.j.a.d.b.n.d;
import c.j.a.d.b.n.e;
import c.j.a.d.b.n.f;
import c.j.a.d.b.n.g;
import c.j.a.d.b.n.j;
import c.j.a.d.b.n.k;
import c.j.a.d.b.n.o;
import java.util.List;

/* compiled from: IndependentDownloadBinder */
public class r extends a {
    public final p a = new v(true);

    static {
        Class cls = r.class;
    }

    public void A0(m mVar) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            n nVar;
            Handler handler = d.a;
            if (mVar == null) {
                nVar = null;
            } else {
                nVar = new j(mVar);
            }
            pVar.u(nVar);
        }
    }

    public boolean B(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return false;
        }
        return pVar.G(i);
    }

    public boolean F(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return false;
        }
        return pVar.F(i);
    }

    public void G(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.B(i);
        }
    }

    public void I0(c.j.a.d.b.h.a aVar) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            Handler handler = d.a;
            c cVar = null;
            if (aVar != null) {
                try {
                    l lVar;
                    m0 m0Var;
                    b0 b0Var;
                    q qVar;
                    l0 l0Var;
                    f0 f0Var;
                    h0 h0Var;
                    c.j.a.d.b.d.j jVar;
                    s sVar;
                    a0 a0Var;
                    com.ss.android.socialbase.downloader.g.c a = aVar.a();
                    c cVar2 = new c();
                    cVar2.a = a;
                    c.j.a.d.b.d.s b = aVar.b();
                    if (b == null) {
                        lVar = null;
                    } else {
                        lVar = new c.j.a.d.b.n.c(b);
                    }
                    cVar2.c = lVar;
                    cVar2.i = d.c(aVar.c());
                    v e = aVar.e();
                    if (e == null) {
                        m0Var = null;
                    } else {
                        m0Var = new c.j.a.d.b.n.n(e);
                    }
                    cVar2.j = m0Var;
                    t f = aVar.f();
                    if (f == null) {
                        b0Var = null;
                    } else {
                        b0Var = new e(f);
                    }
                    cVar2.k = b0Var;
                    x j = aVar.j();
                    if (j == null) {
                        qVar = null;
                    } else {
                        qVar = new f(j);
                    }
                    cVar2.l = qVar;
                    j0 g = aVar.g();
                    if (g == null) {
                        l0Var = null;
                    } else {
                        l0Var = new g(g);
                    }
                    cVar2.n = l0Var;
                    d0 i = aVar.i();
                    if (i == null) {
                        f0Var = null;
                    } else {
                        f0Var = new k(i);
                    }
                    cVar2.o = f0Var;
                    u k = aVar.k();
                    if (k == null) {
                        h0Var = null;
                    } else {
                        h0Var = new o(k);
                    }
                    cVar2.s = h0Var;
                    i d = aVar.d();
                    if (d == null) {
                        jVar = null;
                    } else {
                        jVar = new b(d);
                    }
                    cVar2.q = jVar;
                    c.j.a.d.b.d.k h = aVar.h();
                    if (h == null) {
                        sVar = null;
                    } else {
                        sVar = new c.j.a.d.b.n.m(h);
                    }
                    cVar2.p = sVar;
                    z l = aVar.l();
                    if (l == null) {
                        a0Var = null;
                    } else {
                        a0Var = new c.j.a.d.b.n.a0(l);
                    }
                    cVar2.t = a0Var;
                    c.j.a.d.b.b.g gVar = c.j.a.d.b.b.g.MAIN;
                    w b2 = aVar.b(0);
                    if (b2 != null) {
                        cVar2.b(b2.hashCode(), d.a(b2));
                    }
                    c.j.a.d.b.b.g gVar2 = c.j.a.d.b.b.g.SUB;
                    w b3 = aVar.b(1);
                    if (b3 != null) {
                        cVar2.f(b3.hashCode(), d.a(b3));
                    }
                    c.j.a.d.b.b.g gVar3 = c.j.a.d.b.b.g.NOTIFICATION;
                    w b4 = aVar.b(2);
                    if (b4 != null) {
                        cVar2.j(b4.hashCode(), d.a(b4));
                    }
                    d.f(cVar2, aVar, gVar);
                    d.f(cVar2, aVar, gVar2);
                    d.f(cVar2, aVar, gVar3);
                    cVar = cVar2;
                } catch (RemoteException e2) {
                    e2.printStackTrace();
                }
            }
            pVar.a(cVar);
        }
    }

    public c.j.a.d.b.d.c K(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return null;
        }
        return d.b(pVar.K(i));
    }

    public void L(int i, boolean z) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.L(i, z);
        }
    }

    public int M(int i) throws RemoteException {
        return c.j.a.d.b.e.d.b().e(i);
    }

    public i Q(int i) throws RemoteException {
        p pVar = this.a;
        i iVar = null;
        if (pVar == null) {
            return null;
        }
        c.j.a.d.b.d.j Q = pVar.Q(i);
        Handler handler = d.a;
        if (Q != null) {
            iVar = new c.j.a.d.b.n.p(Q);
        }
        return iVar;
    }

    public void S(int i, boolean z) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.S(i, z);
        }
    }

    public boolean T(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return false;
        }
        return pVar.T(i);
    }

    public void U(List<String> list) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.U(list);
        }
    }

    public void V(int i, Notification notification) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.V(i, notification);
        }
    }

    public void a(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.a(i);
        }
    }

    public boolean b(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return false;
        }
        return pVar.b(i);
    }

    public void c(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.c(i);
        }
    }

    public void d(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.d(i);
        }
    }

    public void d0(int i, int i2, w wVar, int i3, boolean z) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.s(i, i2, d.a(wVar), c.j.a.d.b.n.a.S(i3), z);
        }
    }

    public boolean e(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return false;
        }
        return pVar.e(i);
    }

    public int f(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return 0;
        }
        return pVar.f(i);
    }

    public com.ss.android.socialbase.downloader.g.c g(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return null;
        }
        return pVar.g(i);
    }

    public List<com.ss.android.socialbase.downloader.g.b> h(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return null;
        }
        return pVar.h(i);
    }

    public void i(int i, List<com.ss.android.socialbase.downloader.g.b> list) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.d(i, list);
        }
    }

    public List<com.ss.android.socialbase.downloader.g.c> j(String str) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return null;
        }
        return pVar.v(str);
    }

    public void k(int i, int i2, long j) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.k(i, i2, j);
        }
    }

    public long l(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return 0;
        }
        return pVar.l(i);
    }

    public void m(int i, int i2, int i3, long j) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.m(i, i2, i3, j);
        }
    }

    public void n(int i, int i2, int i3, int i4) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.n(i, i2, i3, i4);
        }
    }

    public void o(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.o(i);
        }
    }

    public void o0(int i, boolean z) throws RemoteException {
        c.j.a.d.b.e.d.b().g(i, z);
    }

    public void q0(int i, c.j.a.d.b.d.c cVar) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.q(i, d.c(cVar));
        }
    }

    public void r0(int i, int i2, w wVar, int i3, boolean z) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.z(i, i2, d.a(wVar), c.j.a.d.b.n.a.S(i3), z);
        }
    }

    public void s0(int i, int i2, w wVar, int i3, boolean z, boolean z2) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.r(i, i2, d.a(wVar), c.j.a.d.b.n.a.S(i3), z, z2);
        }
    }

    public List<com.ss.android.socialbase.downloader.g.c> v(String str) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return null;
        }
        return pVar.j(str);
    }

    public u w(int i) throws RemoteException {
        p pVar = this.a;
        u uVar = null;
        if (pVar == null) {
            return null;
        }
        h0 w = pVar.w(i);
        Handler handler = d.a;
        if (w != null) {
            uVar = new c.j.a.d.b.n.s(w);
        }
        return uVar;
    }

    public void y(int i) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.y(i);
        }
    }

    public void a() throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.a();
        }
    }

    public List<com.ss.android.socialbase.downloader.g.c> b(String str) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return null;
        }
        return pVar.b(str);
    }

    public List<com.ss.android.socialbase.downloader.g.c> c(String str) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return null;
        }
        return pVar.c(str);
    }

    public void d() throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.f();
        }
    }

    public boolean e() throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return false;
        }
        return pVar.b();
    }

    public void f(com.ss.android.socialbase.downloader.g.b bVar) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.f(bVar);
        }
    }

    public List<com.ss.android.socialbase.downloader.g.c> a(String str) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return null;
        }
        return pVar.a(str);
    }

    public boolean b(com.ss.android.socialbase.downloader.g.c cVar) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return false;
        }
        return pVar.c(cVar);
    }

    public boolean c() throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return false;
        }
        return pVar.e();
    }

    public void d(int i, List<com.ss.android.socialbase.downloader.g.b> list) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.i(i, list);
        }
    }

    public void a(List<String> list) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.a((List) list);
        }
    }

    public boolean a(com.ss.android.socialbase.downloader.g.c cVar) throws RemoteException {
        p pVar = this.a;
        if (pVar == null) {
            return false;
        }
        return pVar.a(cVar);
    }

    public void a(boolean z) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.A(true, z);
        }
    }

    public void a(int i, long j) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.a(i, j);
        }
    }

    public void a(int i, int i2) throws RemoteException {
        p pVar = this.a;
        if (pVar != null) {
            pVar.a(i, i2);
        }
    }
}
